package org.steven0lisa.typhoon.models;

import java.util.List;

import org.steven0lisa.typhoon.bean.Typhoon;

public class TyphoonModel {

	static List<Typhoon> typhoons;
	
	public static void saveTyphoons(List<Typhoon> typhoons){
		TyphoonModel.typhoons = typhoons;
	}
	
	public static Typhoon findTyhoonById(String typhoonId){
		for(Typhoon typhoon: typhoons){
			if(typhoon.typhoon_id.equals(typhoonId)){
				return typhoon;
			}
		}
		return null;
	}
}
